# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=perl-test-minimumversion
pkgver=0.101083
pkgrel=2
pkgdesc="Does your code require newer perl than you think?"
arch=('any')
license=('PerlArtistic')
url="https://metacpan.org/release/Test-MinimumVersion"
depends=('perl-file-find-rule' 'perl-file-find-rule-perl' 'perl-perl-minimumversion')
options=('!emptydirs')
source=("https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Test-MinimumVersion-$pkgver.tar.gz")
sha512sums=('f35dcb6f902d36bf4244955d7e73e9cb6182aef716aeeff9d090de0e070e2c363ce9c8d7548a897a834d983facfbb3226122bc96e8105e19b7555ee89eb31acb')

build() {
  cd Test-MinimumVersion-$pkgver
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd Test-MinimumVersion-$pkgver
  make test
}

package() {
  cd Test-MinimumVersion-$pkgver
  make DESTDIR="$pkgdir" install
}
